+ Reply to Thread
Results 1 to 5 of 5

Thread: PHP License Script

  1. #1
    Shadow121's Avatar
    Shadow121 is offline x10 Lieutenant Shadow121 is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    Centerville
    Posts
    455

    PHP License Script

    I made a license script a while back and it was poorly done. It sent multiple requests to my server and it bogged it down. What would be a good way to make sure A) Someone is licensed and B) Not bog down the server?

    I was thinking a cron job, but how would I check if it is setup?

  2. #2
    leafypiggy's Avatar
    leafypiggy is offline Community Advocate leafypiggy is on a distinguished road
    Join Date
    Aug 2007
    Location
    Massachusetts
    Posts
    2,228

    Re: PHP License Script

    1. Make them buy it from you.
    2. Encrypt the files, as cPanel does, so that only you can edit them. This makes it closed source and means no one could develop for the platform unless you made an API to interface.
    3. Make one callback to your server, during the installation of the script. This is what many scripts (IPB, vB, etc) do, however it doesn't work well, since people simply remove the callback.

    The bottom line is that it's very hard to make a licensed script such as this.

    WHMCS does a good job of it though, and I've actually never been able to get by them... They also have a team of dedicated servers handling the callbacks from the thousand of script-owners they have. Their system checks the license key, and also throws it back with the url it's licensed to. So if you're running the script somewhere other than the url it's licensed to, it blocks you out.
    Neil Hanlon | x10Hosting Support Representative
    Neil[at]x10hosting.com
    █ I'm always happy to help. Just ask a question in Free Hosting
    Terms of Service IRC

  3. #3
    Skizzerz's Avatar
    Skizzerz is offline Contributors Skizzerz will become famous soon enough
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    2,153

    Re: PHP License Script

    SPBAS (SolidPHP Business Automation Suite) is a good software package that features a web store, client area, and licensing for php scripts (it even comes with a php class that you can plug right into your scripts!). Best of all, it's free for your first 5 clients, after which you will need to pay to continue accessing the admin area (although new clients will still be able to purchase your products).

    It also integrates nicely with the ionCube PHP Encoder, which is a reasonably cheap encoder that protects the source code of your PHP scripts. If you plan on using SPBAS's licensing component, you would only need the Basic encoder (aka the cheapest one), so there's an extra benefit in that.

    SPBAS reduces the traffic of callbacks by allowing you to configure how frequently it calls back. For example, you could have it set so that it dials home every two weeks to grab a temporary license file from your server that expires in 2 weeks, even if the main license doesn't expire or has a much longer expiration date.

    Finally, SPBAS is currently running a deal in conjunction with ionCube where you can get a discount on the ionCube Basic encoder when purchasing it in conjunction with SPBAS.

    You can read more about SPBAS at http://www.spbas.com and ionCube at http://www.ioncube.com

    Note: I am recommending the above solution because that is what I am using for my scripts, and it seems to be working out well enough. There are obviously tons of other solutions and competing products that you may wish to check out as well before deciding on the above in order to get a better idea of what's out there and what solutions fit your needs the most.

  4. #4
    morbid_leathal92 is offline x10Hosting Member morbid_leathal92 is an unknown quantity at this point
    Join Date
    Jan 2011
    Location
    Kathmandu
    Posts
    62

    Re: PHP License Script

    there is also Zend Guard to encrypt Php scripts

  5. #5
    Shadow121's Avatar
    Shadow121 is offline x10 Lieutenant Shadow121 is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    Centerville
    Posts
    455

    Re: PHP License Script

    Alright, thanks, I'll check out the links. I've known about IONCube but not enough money for it.

+ Reply to Thread

Similar Threads

  1. PHP License Script need help.
    By Shadow121 in forum Programming Help
    Replies: 4
    Last Post: 10-08-2010, 07:23 PM
  2. I Just Got My Restricted License!!!
    By Joker Boy in forum Off Topic
    Replies: 9
    Last Post: 03-22-2007, 04:08 PM
  3. IPB License
    By Tetly in forum Scripts & 3rd Party Apps
    Replies: 2
    Last Post: 08-03-2006, 11:34 AM
  4. [REQ] Vb License
    By Fire Wolf in forum The Marketplace
    Replies: 3
    Last Post: 04-13-2006, 12:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers