473,378 Members | 1,236 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Protection a js file

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,

--
K.

http://www.osresources.com/
Jul 23 '05 #1
10 1395
Kerberos wrote:
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.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #2
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?

Jul 23 '05 #3
In article <op**************@cinza.mshome.net>, Kerberos says...
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.
--
Hywel

http://sponsorhywel.org.uk/
Jul 23 '05 #4
Em 23 Oct 2004 18:50:23 -0700, Lee <RE**************@cox.net> escreveu:
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.

--
K.

http://www.osresources.com/
Jul 23 '05 #5
> 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?
Jul 23 '05 #6
"Douglas Crockford" <no****@covad.net> wrote in message news:17***************************@msgid.meganewss ervers.com...
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?


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

--
George Hester
__________________________________
Jul 23 '05 #7
On Sun, 24 Oct 2004 14:40:04 -0200, Kerberos <no*****@please.com> wrote:

[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

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #8
Em Sun, 24 Oct 2004 22:26:39 GMT, George Hester <he********@hotmail.com>
escreveu:
"Douglas Crockford" <no****@covad.net> wrote in message
news:17***************************@msgid.meganewss ervers.com...
> 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?


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


I'm using an encryption system that converts all code into weird
characters.
http://www.encrypt-html.com/encrypt_javascript.htm
Ok, you guys can reverse-engeneer it, but still, small players will just
give up.

--
K.

http://www.osresources.com/
Jul 23 '05 #9
Lee
Kerberos said:

Em Sun, 24 Oct 2004 22:26:39 GMT, George Hester <he********@hotmail.com>
escreveu:
"Douglas Crockford" <no****@covad.net> wrote in message
news:17***************************@msgid.meganewss ervers.com...
> 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?


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


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.

Jul 23 '05 #10
Kerberos wrote:
I'm using an encryption system that converts all code into weird
characters.
http://www.encrypt-html.com/encrypt_javascript.htm
Ok, you guys can reverse-engeneer it, but still, small players will
just give up.


I hope you didn't pay money for it: so far as I can see it just uses
Microsoft's free script encoder. The obfuscated javascript at the top of
the sample file simply evaluates to:

document.write('<' + 'script language = JScript.Encode>')

Needless to say, the encoded sample page doesn't display anything when
loaded into a non-Microsoft browser such as Mozilla.

It took me longer to find the sample page
(http://www.protware.com/demo_e.htm) than it did to determine that it is
using Microsoft script encoder.

If anyone actually wants to read the decoded page then googling for
"jscript.encode break" should throw up some ideas pretty quickly (e.g.
http://www.klaphek.nl/nr6/scrdec.html).

Jul 23 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: SoftComplete Development | last post by:
SoftComplete Development Updates EXECryptor to v. 2.1.20 Software piracy! Cracked serial numbers! Thousands of commercial products are posted on the warez sites and become available to all who...
3
by: Bill | last post by:
Using ASP in a VBScript environment, how can I check the protection on a directory, or a particular file?
1
by: Stefan S. | last post by:
Hello, yesterday we have upgraded the DB2 v8.1 to FP-level 4. Now we got some messages in the db2diag.log (see snippet at the end). On our filesystem, where the log-files are located we have...
3
by: nathanvi | last post by:
Hi, i've a mdb access file and i launched Tools->Protection->SettingAutomaticProtection (sorry if translation isn't fine but the language in my PC is not english :-( ) two weeks ago .. In other...
9
by: Saso Zagoranski | last post by:
Hi! I have recently completed an application, written in C#. When I opened one of the files with a hex editor I was amazed by the lack of protection for the assemblies. My application uses SQL...
3
by: xenophon | last post by:
This following innocuous code: System.IO.DirectoryInfo fff = new System.IO.DirectoryInfo(); System.IO.FileInfo ppp = fff.GetFiles( Request.MapPath(".") ); for( int ccc=0 ; ccc < ppp.Length ;...
9
by: John | last post by:
Hi, I would like to protect my software from copying. What are best tools for it (hardware protection is not an option), do you have some reccomendation for protection or third party software...
20
by: Paul Bromley | last post by:
Not sure if I can ask the question in this forum - please let me know if it is better elsewhere. Does anyone know of a reasonably priced good copy protection program that will protect software on...
37
by: dmoran21 | last post by:
I am a mathematician trying to write a program in C to do some curve fitting. When I get to the point where I attempt to enter data in my arrays, I get a General Protection Exception error message....
0
by: Vinod Sadanandan | last post by:
STANDBY DATABASE MONITORING & PROTECION MODES (9iR2) This document is written for understanding and monitoring standby database configured with diffrent protection modes . MAXIMUM PROTECTION ...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.