Application licence in DHTML?

Posted on 2005-05-04
Last Modified: 2010-04-06
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?

Question by:willa666
    LVL 1

    Author Comment

    Opps forgot to say that the script is in asp with a db backend
    LVL 13

    Expert Comment

    If it is aspx/ 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?
    LVL 29

    Expert Comment

    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:  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.

    LVL 29

    Expert Comment

    You have asked the same question in two topic areas which is a violation of the members agreement.  You need to close one.
    LVL 10

    Expert Comment

    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!

    LVL 1

    Author Comment

    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?
    LVL 29

    Accepted Solution

    >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.
    LVL 1

    Author Comment

    So does anyone have an examples of how to put asp code in a dll and then using it from asp?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    When you work with shopping cart / ecommerce relates web sites, you need to pass the certain form post details to the payment gateway process page with required details for the products items you give to order. Also you may need to track the ordered…
    I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
    HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now