Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 257
  • Last Modified:

Application licence in DHTML?

Ok so i have slaved hours into developing a couple of scripts and i want to sell these master pieces to the masses!

But i want to keep a control on the licencing, now when ever i have brought a script in the past most of them require you to tell themm what the name of your server is then they give you a licence code/file to allow you script to run with out that annoying DEMO popup box coming up.

So my question is how can it be done?

Willa
0
willa666
Asked:
willa666
1 Solution
 
willa666Author Commented:
Opps forgot to say that the script is in asp with a db backend
0
 
softplusCommented:
If it is aspx/asp.net you can just pass the compiled DLL with your copy protection code included.
If it is asp you can put part of your code into a DLL, along with your copy protection, and use it as a COM-object.
Would that work?
John
0
 
rdivilbissCommented:
softplus is eluding to the fact that if you do not compile your code into a component you can not protect the code as you will be giving the code to the end user and they can break your copy protection very easily.  At least part of your code needs to be a DLL.

For your copy protection you simply take some unique bit of information, such as the server name, web site URL or IP address and create a hash using the unique information.  That hash can be stored in a registry key or file on the web server where your compnent is installed.

In your code, when it is loaded, you would retrieve the unique information from the web server, hash it and compare it to the value you gave the person upon registration.

For the hash, you can use: http://iislogs.com/asp/hash1way.asp.  Make sure you change the SALT in the code to a unique value which you keep secret.

NOTE: You want to build this functionality into your component so it does not have to be recompiled for each customer.  You can retrieve that hash (license key) from a file using the file system object.

The website URL would be the best choice for a unique bit of information as an IP or server name could have multiple web sites.

Regards,
Rod
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
rdivilbissCommented:
You have asked the same question in two topic areas which is a violation of the members agreement.  You need to close one.  http://www.experts-exchange.com/Web/Web_Languages/ASP/Q_21412211.html
0
 
mensuckCommented:
No matter what you do, your code will never be 100% protected. Just create a licensing scheme that allows you to give limited access based on a key or hash that will be contain in your licensing file! Compile your code and add your licensing routine and be done with it! Spending time trying to fight a losing battle is a waste of time. Once you program for many years and release and sell your products you will one day run into piracy, it is just a fact of life we all must live with. Sure it bothers me that I spend sometimes 2 or 3 years of development time and now anyone can get a crack to use it for free. But if it's a useful product you will have many paying clients that will make your development time pay you back in the end!

One of professor's in college would always say this...

Locks on doors are only there to keep honest people honest!


Suzanne
0
 
willa666Author Commented:
Hi their people

Thanks for the replies! :)

softplus/rdivilbiss   thats right i want to do exactly that, I found a product called fileman and it has a DLL that does not have to be registered on the achall server, is tis easy to achive?

rdivilbiss I did not know where i would get the most help from, But i closed the other quetsion as soon as you brought it up.

Mensuck - I guess you are right but i would rather try to protect myself then go into battle with no armour and naked. :)

Achally that brings up a good point, What if i wrote in somthing that called home? is it not ethical?
0
 
rdivilbissCommented:
>What if i wrote in somthing that called home?
>Is it not ethical?

It could be ethical if you are very clear and up front about what will happen. It will increase your support costs by a large amount.  Nobody like buying software that phones home. It seems to be a good way to lose customers and get bad reviews by the press.
0
 
willa666Author Commented:
So does anyone have an examples of how to put asp code in a dll and then using it from asp?
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now