Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Preventing People From Copying Your Javascript
Amezis
post Aug 23 2005, 07:46 PM
Post #1


Privileged Member
*********

Group: Members
Posts: 535
Joined: 14-February 05
From: Oslo, Norway
Member No.: 3,759



Well, I've just made a great script, but I'm sure that it will be copied if I don't try to prevent it.

Firstly, I know I can disable marking, means that in IE, people cannot highlight the text to copy. Also, it's a form using this script, and I know that in Firefox, you can omit the forms tags (works in Netscape too and all other gecko browsers). However, if people are downloading my site (right-clicking the link and selecting download), they'll get all the scripts anyway.

I've seen a site hiding their script (they was also using a form, but when I tried to visit the site the form linked to, I got just an 404 error message), and it was almost impossible to find it. That's a script I want tongue.gif

Hope you understand what I need, and that you can help me smile.gif
Go to the top of the page
 
+Quote Post
OpaQue
post Aug 23 2005, 07:52 PM
Post #2


Administrator
Group Icon

Group: Admin
Posts: 1,448
Joined: 11-June 04
From: Somewhere in Time & Space.
Member No.: 1



Have you tried using EXTERNAL Javascript. Using external javascript is not completely hiding your script. The problem is, even though you hide, members still can access their browser cache and find it. However, it very well keeps the noobs at the corner.

The next thing is, you can use a PHP file to output the javascript and you can validate the calling page. If your calling page is right, the javascript is passed, else something else would be passed. However, no matter what you do, anyone can still get the script from the browser cache. This method, which I told you is one of the best ways to hide scripts because anyone who types "path to your script file" will not get the script since the php script validates the calling page.

I had however, seen one page which ENCRYPTs the Javascript. This used some function to encrypt the javascript. And then it was put in the page. Before the javascript was executed, it de-crypted it and executed the code.
Go to the top of the page
 
+Quote Post
Ao)K-General
post Aug 23 2005, 08:32 PM
Post #3


Privileged Member
*********

Group: Members
Posts: 524
Joined: 6-March 05
Member No.: 4,187



So people cant steal your scripts and read em and all that, just go and ecrypt em. CodeLock has a trial. I don't know if after that your scripts stay encrypted or if they get decrypted and look normal. But it would work. And people would only see jumbled up letters and numbers and signs. There is also zend. I think that is what it is called. The zend one is supposed to be better than CodeLock. I have heard CodeLock is easier to decrypt. And what Snard did was had a database set up. And for the scripts to work he had to add your website url to his database and the scripts would than work. And if he removes the url than your site will not work. I dont know any of the code or anything for that, but it would work. And before he adds anyone, he has them pay him 30 dollars because he worked on them and ain't giving em out for free no more. But ya. That would work.
Go to the top of the page
 
+Quote Post
Amezis
post Aug 24 2005, 11:52 AM
Post #4


Privileged Member
*********

Group: Members
Posts: 535
Joined: 14-February 05
From: Oslo, Norway
Member No.: 3,759



Well, okay, but does encrypted JavaScript work on all browsers where JavaScript is enabled?

Also, well, I'm really new to Javascript. External JavaScript, is that a code like this?
CODE
<script type="text/javascript" src="http://www.domain.com/script.js"></script>

If that's the case, then I suppose I could just link the form to it:
CODE
<form name="formname" action="http://www.domain.com/script.js">
Go to the top of the page
 
+Quote Post
patelg
post Aug 24 2005, 01:23 PM
Post #5


Member [Level 2]
*****

Group: Members
Posts: 89
Joined: 27-July 05
From: AUSTRALINDIA
Member No.: 9,896



Good to know all this new ways of hiding and ENCRYPTING javascript...it will be good if you guys can pointed out to any example.


It will be very very helpful.

Thanks
Go to the top of the page
 
+Quote Post
beeseven
post Aug 31 2005, 09:58 PM
Post #6


Privileged Member
*********

Group: Members
Posts: 629
Joined: 26-February 05
Member No.: 3,995



As said before, though, there are always ways of getting the scripts. Also a lot of the easier ways (disable right click, disable highlight, etc.) don't work on good browsers.

But the thing about Javascript is that pretty much everything that can be done has been done, so someone could probably just go somewhere else and get a similar script.
Go to the top of the page
 
+Quote Post
Tyssen
post Sep 1 2005, 02:23 AM
Post #7



***********

Group: Members
Posts: 1,161
Joined: 9-May 05
From: Brisbane, QLD
Member No.: 6,818



QUOTE(Amezis @ Aug 24 2005, 05:46 AM)
Well, I've just made a great script, but I'm sure that it will be copied if I don't try to prevent it.

Why is that a problem?
Go to the top of the page
 
+Quote Post
Saint_Michael
post Sep 1 2005, 03:56 AM
Post #8


$p4m 0n j00 $h4m3 m3 0nc3 $p4m 0n m3 $h4m3 m3 7\/\/1c3
*********************

Group: [HOSTED]
Posts: 6,304
Joined: 21-September 04
From: 9r33|\| 399$ 4|\|D 5P4/\/\
Member No.: 1,218
T17 GFX Crew



yeah that is the best way to prevent stealing of scripts is enternal linking it but of course sometimes all you have to do is save the website and the script is their, well sometimes.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Javascript Slideshow Tutorial(3)
  2. Javascript Close Window(12)
  3. One Click Copy And Paste To Clipboard(5)
  4. Adding Rows & Columns In Html Table Using Javascript(1)
  5. I'm Making My Own Javascript Only Rpg :d(7)
  6. What's The Relationship Between Javascript And Java(5)
  7. Javascript : No Right Click Script !@(12)
  8. Hiding <div> Boxes With Javascript(8)
  9. Help With Javascript Calculator On My Website Please!(1)
  10. My Little Javascript(0)
  11. Highlight A Word In Javascript. Help!(2)
  12. How Do You Make A Javascript Calculator?(11)
  13. Help With Javascript Calculator Returning "nan"(2)
  14. Great Javascript Script Source(2)
  15. Web Applications: J2ee Or Javascript/css/html(1)
  1. Opera Browser + Javascript + Embeded Sound(0)
  2. Javascript - What's Your Browser?(3)
  3. Javascript Events Not Working For Ie(6)
  4. I`m New To Javascript.(5)
  5. Special Wii Javascript(2)
  6. Javascript Error(2)
  7. Is It Possible To Create A Web Based Mmo In Javascript?(4)
  8. Capturing Username Of Computer(3)
  9. Javascript Object Node Referencing Help(5)
  10. Flash And Javascript Interaction(1)