Protection a js file

K

Kerberos

Is it possible to prevent a javascript file from being stolen on a web
site?
I mean, not protecting 100% is ok, as long as trying to steal it takes
more time than coding it (took an afternoon).
Thanks,
 
R

Randy Webb

Kerberos said:
Is it possible to prevent a javascript file from being stolen on a web
site?
No.

I mean, not protecting 100% is ok, as long as trying to steal it takes
more time than coding it (took an afternoon).

It is trivial to steal a script. IE will, generally, give it to you in
way less time than it took you to write it.
 
L

Lee

Kerberos said:
Is it possible to prevent a javascript file from being stolen on a web
site?
I mean, not protecting 100% is ok, as long as trying to steal it takes
more time than coding it (took an afternoon).
Thanks,

You seem to have posted this from an "Open Source" forum. Irony?
 
H

Hywel

Is it possible to prevent a javascript file from being stolen on a web
site?

Yes. Don't link to it and put it in a directory structure that no one
will ever guess.
I mean, not protecting 100% is ok, as long as trying to steal it takes
more time than coding it (took an afternoon).

A whole afternoon? Wow! That must be an amazing piece of coding.
 
K

Kerberos

Em 23 Oct 2004 18:50:23 -0700 said:
You seem to have posted this from an "Open Source" forum. Irony?

Actually this is not a script I'm going to give away, and it wouldn't be
useful anyway, but I found a trade off to make it very difficult to grab.
 
D

Douglas Crockford

Actually this is not a script I'm going to give away, and it wouldn't
be useful anyway, but I found a trade off to make it very difficult to
grab.

That seems unlikely. How difficult? Would you care to place a wager on
how long it takes any of us to grab it?
 
G

George Hester

Douglas Crockford said:
That seems unlikely. How difficult? Would you care to place a wager on
how long it takes any of us to grab it?

I'd sure like to take a stab at it. Never know we might learn something.
 
M

Michael Winter

[snip]
Actually this is not a script I'm going to give away, and it wouldn't be
useful anyway, [...]

Perhaps I'm reading this wrong, but if the script wouldn't be useful to
other people, why try to hide it? Any "protection" you apply will do
nothing but add overheads to the script.

Mike
 
L

Lee

Kerberos said:
I'm using an encryption system that converts all code into weird
characters.

But that means that you've also got to be sending a function that
decrypts it. That's leaving the key in the lock. All we have to
do is turn it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top