php md5 license help?

Discussion in 'PHP' started by K1N6Z, Dec 4, 2009.

  1. #1
    I have a script the I want to put a license on it
    so when I sell it, it won't be leak or share with other people.
    So I have to add the license first so the script will work for them.
    I want to use a base md5 license for my script. I have found a code
    for it but it only work for my domain/site. But if I try to add other people
    license it doesn't work for their site only mines. If I don't add the the license
    then their is a md5 license appear on the site like:

    Invalid license key 16b8f7696aad909443db01cff2af9a88:DOMAINNAME.COM

    Which I have to add the 16b8f7696aad909443db01cff2af9a88 into
    my site with their domain name as in text with the hash:
    6b8f7696aad909443db01cff2af9a88 to make the license work.

    Heres the code:

    include "config.php";
    $key = $_SERVER['HTTP_HOST'];
    $md5 = md5($key);
    $myFile = "http://domain.com/php/".$key.".txt";
    $fh = fopen($myFile, 'r');
    $license = fread($fh, 5000000);
    fclose($fh);
    if ($license == $md5) {


    But I want it to make it work with me and other site when I add
    the license. Cause the code right now doesn't work for any body
    but only me. I have try useing http://www.phplicengine.com/
    but I don't know how it work or anything after I got it install.
    If anybody that knows howw to use http://www.phplicengine.com/
    may you help me?

    Thanks...
     
    K1N6Z, Dec 4, 2009 IP
  2. astkboy2008

    astkboy2008 Peon

    Messages:
    211
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    i dont understand what are you want
     
    astkboy2008, Dec 6, 2009 IP
  3. K1N6Z

    K1N6Z Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Sorry for my bad English. I want a script that will be able to
    put a license on a script. Such as php license script protection.
     
    K1N6Z, Dec 6, 2009 IP
  4. xenon2010

    xenon2010 Peon

    Messages:
    237
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    use source guardian or php shield..
     
    xenon2010, Dec 6, 2009 IP
  5. K1N6Z

    K1N6Z Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Those are easily to be decoded. Even I could decode them.
    What Im looking for is something similar to phplicengine,iono,spbas ect.
     
    K1N6Z, Dec 6, 2009 IP
  6. xenon2010

    xenon2010 Peon

    Messages:
    237
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    well its simple. you cannot protect your PHP source code thats for sure..
    sooner or later crackers will decode it and your script will get nulled easily..
    so here is my 2 cents.
    1- try to lower your prices as much as possible so crackers wont waste their time cracking a very cheap software.
    2- spend your time on the functionality of the script not security..
    or you change your script to windows application which allows you to use wide range of techniques to enhance the security of your program.
    there is a tool can help you to develop windows applications using simple PHP language. called PHPEXE google it..
     
    xenon2010, Dec 8, 2009 IP
  7. n3r0x

    n3r0x Well-Known Member

    Messages:
    257
    Likes Received:
    4
    Best Answers:
    1
    Trophy Points:
    120
    #7

    Wouldn´t it be better for him to use a language that can use Compiled CGI instead in that case.. That way it can be runned on linux / unix and windows servers. Having a website software that only is supported on windows would actually make him lose alot of money since the people running unix/linux servers wouldn´t buy it since they wouldn´t be able to run it..

    And why not build a similar system that vbulletin uses.. most people buys it. and most people will buy your script aswell if they feel it´s worth the money. There will always be crackers that nulls / cracks scripts, apps or games most companies include this in their estimated profit calculations.
     
    n3r0x, Dec 8, 2009 IP
  8. K1N6Z

    K1N6Z Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8

    I would like the system vbulletin uses but I do not know how to
    build something like it. Well true that their are cracker that null script.
    But a little more protection is better than nothing right?
     
    K1N6Z, Dec 8, 2009 IP