Preventing script theft

They have: 14 posts

Joined: Jun 2000

Hi

I have a very unique script that I will install on my server, consists of 2 html files and a script.js file wich contains the core script, what I am worried is that it would be very easy for someone to simply read the source of one of the html files and find the path to the .js file.. i tried it and if I type in the complete url to the .js file the browser will actually start the download process, but this only works if the user did not activate the script (stores info in a cookies, if no cookie was created the above is possible, if a cookie is created the url will simply display the content, it wont download)

Is there a way I can protect my script ? is chmod possible ? dont know if it is relevant but the .js file must be kept in the same directory as the rest of the files. thank you for those who will respond !

They have: 58 posts

Joined: Jul 2000

I am pretty sure this is not possible. Sorry, you are out of luck there.

Put a copyright notice at the top of the script. That way you can take legal action if neccessary.

Good luck!

-Aidan Bahta
[email protected]

ActiveWM.com - The place for the Active Webmaster.

AndyB's picture

They have: 344 posts

Joined: Aug 1999

Take a look at http://www.psyral.com

They have: 8 posts

Joined: Apr 2000

I know of two things you can do to help protect your source from being read or even coppied, it is done by disabling the right click feature off the mouse in the browser, a feature which I need to post, and by loading a framset for your intial start page. This way even when a user tries to view the source the only thing they can get is the framset info, which in itself tends to be usless, and they can not use the right click methode on the mouse to get the view source option there. Below is a sample framset that I am refering to, and I will get you the dynamic right click information that you can use.

Sample framset

You are only limited to that what you think you can do.

AndyB's picture

They have: 344 posts

Joined: Aug 1999

I suggested psyral.com since that was a serious protection scheme. If you just interested is preventing 'casual' protection, then visit http://continue.to/hope

They have: 8 posts

Joined: Apr 2000

The link AndyB supplied is perfect, and it even helped me out. Thanks.

They have: 75 posts

Joined: Mar 2000

From what I know, you CANNOT stop someone from rightclicking. Why? Go on a page that has it disabled. Righ click. Now, hit the space bar and right click almost at the same time(richclick right after you hit the space bar.) Hmm...wonder what just pop up, maybe the menu when you normaly right click?

Just thought I'd let ya know....

Anyone know the answer to the post I have below about changing the mouse icon?(please read it..)

-Tallon-
http://www.tallonsclaw.net
^ My starcraft clan site..don't view in netscape.

-tallon

They have: 8 posts

Joined: Apr 2000

True, but it isn't like an average user will know that for one, and the second is that it isn't that easy to pull off. Plus, when used in combination with other scripts and other features you can fool any person, as long as you have created something rather than the standard this has been disabled block.

And as for your cursor changing just use the css tags for changing them,

ie.

style="cursor:hand"

style="cursor:wait"

these will work, but I am not sure about being used in NS.

To show a custom pointer rather than the one of the users systems, hand and busy points is something I am not totally sure on. But I think I can find it somewhere out there in this big vast network, called the net.

You are only limited to that what you think you can do.

They have: 75 posts

Joined: Mar 2000

That's true, most people won't know of that. Infact, I found it on accident because I was wanting to reload a frame within a page and was mad that the guy had that script running =).

And about the curser....let me refrase what I'm looking for(and haven't yet found).

I don't want to have the curser change to an hour glass or whatever over text or an image...I want all that to be default. But, instead of having the default hand or pointer or cross-hair or hour glass, etc, I want to show custom ones.

I'm sure the people on this board would know where to look before I would...I already checked where I normally look for stuff before I came here, and I just found the stuff to change a curser to a hand..or a cross hair..etc.

-Tallon-
http://www.tallonsclaw.net

-tallon

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.