Hide Codes

Discussion in 'PHP' started by gigamike, Oct 25, 2006.

  1. #1
    Hi Guys,

    :) please help me again. I have a system that i sell and what i do is that i hosted them. There is a client who requested to have his own dedicated server. Now i want to hide the script so that he/she may not share to others. Its a little bit awkward coz where using php which is a open source :(. Is this possible. If NO, please help me defend this to my client :)

    Thanks,

    Mike
     
    gigamike, Oct 25, 2006 IP
  2. mitchandre

    mitchandre Peon

    Messages:
    313
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can't read the source code of a php script though. I'm confused what you're talking about.
     
    mitchandre, Oct 25, 2006 IP
  3. Chemo

    Chemo Peon

    Messages:
    146
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Encode the source files with eAccelerator or other free tool.

    Bobby
     
    Chemo, Oct 25, 2006 IP
  4. noppid

    noppid gunnin' for the quota

    Messages:
    4,246
    Likes Received:
    232
    Best Answers:
    0
    Trophy Points:
    135
    #4
    Of course you can, they are text files. :confused:
     
    noppid, Oct 25, 2006 IP
  5. gigamike

    gigamike Active Member

    Messages:
    165
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #5
    Hi,

    thanks for the response, well in short i dont want to let my client to see the code when i destribute the files. Coz usually, when i sell my bank app, im the on who hosted it, now they are requesting to have their own dedicated server and hence they can play around (modify codes) or share the script to others

    Thanks again,

    mike


     
    gigamike, Oct 25, 2006 IP
  6. gigamike

    gigamike Active Member

    Messages:
    165
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #6
    Hi Bobby,

    ill check that, thanks a lot,

    mike

     
    gigamike, Oct 25, 2006 IP
  7. gigamike

    gigamike Active Member

    Messages:
    165
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #7
    gigamike, Oct 26, 2006 IP
  8. gigamike

    gigamike Active Member

    Messages:
    165
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #8
    Yeah, i think ioncube will work for me. Here is a sample:

    FROM:

    <?php
    echo "Tes IonCube";
    ?>

    TO:

    <?php //003f3
    // IONCUBE ENCODER 6.5 EVALUATION
    // THIS LICENSE MESSAGE IS ONLY ADDED BY THE EVALUATION ENCODER AND
    // IS NOT PRESENT IN PRODUCTION ENCODED FILES

    if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='/ioncube/ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}@dl($__ln);}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo('Site error: the file <b>'.__FILE__.'</b> requires the ionCube PHP Loader '.basename($__ln).' to be installed by the site administrator.');exit(199);
    ?>
    4+oV5ArXTrzOoakHCTZYVBkBSFZ6/E91jpy/ky08QYPmSKUamPVz0fCXZQ1wwTqgU/WqGR6HBiNh
    lR0a2WpQR1EkJmeN0fbaKka+1cJfS3QkLM4WkeN/gXYKbJwA4oipmdcidOOnDGsdTRvGIYIoMTks
    KWn8CupUfbFroN8iSm1FMJEhPjq1SYPonb9UMwvH1+yhy/58oYLbXzIEEIqPyie1LhvHLDLi69/P
    iMECVRziz10hgsAvRT19lB4CY8OmEPL01DPC6njLOgG145qarnME8LAoFUS5yHBxtmr7rIfV0rVo
    rhwKEnPBizlpMPn9CvZEPaYeguxwuHsT72N9TB6A/fGa0o28UfcTzinWi7kp8t1qYZJs3izqyRx8
    jsMRmSqjlgUqOYPOGW==


    So it encrypted my .php...cool
     
    gigamike, Oct 26, 2006 IP
  9. big.provider

    big.provider Peon

    Messages:
    95
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    How to decoder???
     
    big.provider, Oct 28, 2006 IP
  10. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #10
    big.provider: ioncube and the like use a server side PHP extension to do the decoding. Not a problem so long as you know that your client's host has the right extension...
     
    TwistMyArm, Oct 28, 2006 IP
  11. gigamike

    gigamike Active Member

    Messages:
    165
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #11
    hi,

    So how does ioncube works, first you need to have the .exe that encrypts a your .php file. On your server, you will install on what they call loader who reads the encrypted file, you will add a line to your apache (edit php.ini) pointing to your loader. Now the apache can interprete encrypted .php files.
    Try there demo version :)

    tnx,

    mike

     
    gigamike, Oct 28, 2006 IP