Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > VodaHost Web Hosting Support > General Support Issues

Notices

General Support Issues Answers to general questions and help with common problems. For help with a specific issue, post to one of the forums below.

Closed Thread
 
Thread Tools
  #1  
Old 08-11-2006, 01:38 AM
Nite Producer's Avatar
Lieutenant Colonel
 
Join Date: May 2006
Location: Saratoga, Central Coast
Posts: 601
Send a message via Skype™ to Nite Producer
Cool Please Help On Scripting

Hi scriptors,

Please follow the situation and find the questions in the bottom:

Situation:
I want to protect my pages from right click and PrintScreen SysRq

I found the following scripts in web site but they didn't work

In the first one which is to disable the keyboard, it said put it in the Head section of the page:

<SCRIPT LANGUAGE?JavaScript1.1?>
<!-- Begin DigitalJustice.com Protection
function keypressed() {
alert("Sorry, but you can't do that.");
}
document.onkeydown=keypressed;
// End -->
</SCRIPT>

In the second which is to disable right click, it said put it right above the body tag:

<script language=JavaScript>
<!--
var message="Copyright Nite Production!";
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// -->
</script>

Questions:
1 - are these scripts rights? if no can anyone provide me with?
2 - In Blue Voda, when I right click in the page, I find Page HTML, is there where should I put these scripts? if yes which tags? if no where, and how?

Thanks in advance
__________________
The Producer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #2  
Old 08-11-2006, 01:43 AM
FPRob's Avatar
Brigadier General
 
Join Date: Aug 2006
Location: Near some trees
Posts: 1,058
Default Re: Please Help On Scripting

NitePro... Can you leave this with me for 10 mins.... I think I can fix it but Im goign to have to install it on a webpage and check it out?
__________________

FPRULES


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old 08-11-2006, 01:58 AM
FPRob's Avatar
Brigadier General
 
Join Date: Aug 2006
Location: Near some trees
Posts: 1,058
Default Re: Please Help On Scripting

OK This will disable the right click mate... I am working on one for the keyboard too. Although, are you sure you want to do that? Many visitors will asume that you r website has made their keyboard lock up and will not visit again.

How to disable the right mouse click..... (before you click, see my next post, below)

Enter the following code in the <HEAD> of each page that requires the 'no right click'. Then download this file (click the link) from my server and place it in the same place as your index page (before you click, see my next post, below). http://www.fprules.com/files/norig***lick.js

Code:
<script type="text/javascript" src="norig***lick.js"></script>
Notes...

1) This will only work on pages that are in the root directory (where you index page is). If you have pages inside folders let me know and I will give you a couple of more instructions mate.

2) This code only works for Internet Explorer. It is some code that I had hanging around and have not been able to modify for other browsers. Neither apparantly has the original author of the code.

3) Disabling the right click is not a full proof way to protect you pics etc. If people want them they will find a way to get them even if they cant right click

4) Those who have JavaScript disabled in their browser will still be able to right click with no problems.
__________________

FPRULES


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old 08-11-2006, 02:00 AM
FPRob's Avatar
Brigadier General
 
Join Date: Aug 2006
Location: Near some trees
Posts: 1,058
Default Re: Please Help On Scripting

I just realised... When you click the link.. the file might not download. It might display as code on your screen.

If this happens, copy and paste the code to a TEXT DOCUMENT (.TXT) save it as

norig***lick.js

Then put that file into the same place as your index page
__________________

FPRULES


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #5  
Old 08-11-2006, 02:05 AM
zigzag's Avatar
Captain
 
Join Date: Apr 2006
Location: Durban, South Africa
Posts: 206
Default Re: Please Help On Scripting

I have just tried these 2 scripts above, and they work. Or certainly give the specified message anyway. I can't comment on whether they are a good idea or not.

The first one I pasted in the "Between Head Tag".
The second, I put in "Beginning of Body"

Regards
__________________
Royden

www.harrow-art.com
www.harrow.co.za
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #6  
Old 08-11-2006, 02:08 AM
FPRob's Avatar
Brigadier General
 
Join Date: Aug 2006
Location: Near some trees
Posts: 1,058
Default Re: Please Help On Scripting

The problem with the original code pasted by NP is that it is quite a few lines of code. Adding it to each page will increase the page loading times, not significantly but every millisecond you can shave off has to be a good thing.

Using my code above which isnt much different does the same thing in a different way.

all of the script ios in a single file (norig***lick.js) This file is called by every page that had the single line of code that I supplied.

because each page is only having a single line of code added, hardly anything, infact probably nothing, is added to the page loading time.

:)
__________________

FPRULES


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #7  
Old 08-11-2006, 02:21 AM
zigzag's Avatar
Captain
 
Join Date: Apr 2006
Location: Durban, South Africa
Posts: 206
Default Re: Please Help On Scripting

NP, you can see your code in action by going to ...
http://www.harrow-art.com/indexExp.html
FPRob is correct in saying that it is strictly better to 'call' the code from each page. Although this code is so small, that if you are prepared to paste it into every page, and you don't have a lot of pages - then the choice is yours.
__________________
Royden

www.harrow-art.com
www.harrow.co.za
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #8  
Old 08-11-2006, 02:24 AM
Nite Producer's Avatar
Lieutenant Colonel
 
Join Date: May 2006
Location: Saratoga, Central Coast
Posts: 601
Send a message via Skype™ to Nite Producer
Default Re: Please Help On Scripting

Thank you FPRob, thank you zigzag,

Actually I'm using this just temporary, but normaly I don't care about this stuff. My copyrights are more better, because all my stuff I publish are copyrighted, if anyone would like to use them, so I'll see him in the court defenitely I'll be winner and then I'll retire :)))
__________________
The Producer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #9  
Old 08-11-2006, 02:25 AM
FPRob's Avatar
Brigadier General
 
Join Date: Aug 2006
Location: Near some trees
Posts: 1,058
Default Re: Please Help On Scripting

<agrees> NitePro's original code and the one that ZigZag is using will not add much to your page loading times. It certainly wont be noticeable.
__________________

FPRULES


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #10  
Old 08-11-2006, 02:26 AM
Nite Producer's Avatar
Lieutenant Colonel
 
Join Date: May 2006
Location: Saratoga, Central Coast
Posts: 601
Send a message via Skype™ to Nite Producer
Default Re: Please Help On Scripting

Nice one zig zag, but I still could copy it by pressing the print screen botton in my keyboard
__________________
The Producer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #11  
Old 08-11-2006, 02:27 AM
Nite Producer's Avatar
Lieutenant Colonel
 
Join Date: May 2006
Location: Saratoga, Central Coast
Posts: 601
Send a message via Skype™ to Nite Producer
Default Re: Please Help On Scripting

Allright, so I'll give it a go then
__________________
The Producer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #12  
Old 08-11-2006, 02:33 AM
FPRob's Avatar
Brigadier General
 
Join Date: Aug 2006
Location: Near some trees
Posts: 1,058
Default Re: Please Help On Scripting

NP.. honestly.. you dont want to disable keyboard funtions if you can help it.

Heres a good idea.... when you finalise your music (I assume that whatyou are trying to protect) add an authentic note (in soundforge or whatever prog you are using). this note will accompnay all downloads and stay attached to the song forever. it is no guarantee that people wont rip you off but it is protection for you if it ver does come to a legal procedding.

also, its worth noting that the biggest record companies on the planet cannot stop their music being distributed. You are definitely fighting an impossible battle.
__________________

FPRULES


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #13  
Old 08-11-2006, 02:39 AM
Nite Producer's Avatar
Lieutenant Colonel
 
Join Date: May 2006
Location: Saratoga, Central Coast
Posts: 601
Send a message via Skype™ to Nite Producer
Default Re: Please Help On Scripting

it's not the music I want to protect first because the music is not mine, but I'm not saying I don't have the right to publish it, I have totaly the right to do so, I don't care about that because you can find it anywhere else. I'm just testing something. It's ok

You remember when I posted to give opinion about my logo?

click in my url and check that out.

don't post your opinion here, I'll will post another thread about it, you'll find it soon
__________________
The Producer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #14  
Old 08-11-2006, 10:35 AM
zigzag's Avatar
Captain
 
Join Date: Apr 2006
Location: Durban, South Africa
Posts: 206
Default Re: Please Help On Scripting

Nite Producer, that is your code on my ... indexExp url
__________________
Royden

www.harrow-art.com
www.harrow.co.za
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT +1. The time now is 06:49 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC7
2005-2009 VodaHost Web Hosting Your Perfect Web Host - All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203