1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to protect source code of PHP !!!

Discussion in 'Ethical hacking' started by Bhullarz, Mar 17, 2009.

  1. Bhullarz

    Bhullarz New Member

    Joined:
    Nov 15, 2006
    Messages:
    253
    Likes Received:
    13
    Trophy Points:
    0
    Occupation:
    System Manager
    Home Page:
    Is there any way that we can protect the source code written in PHP? we know php is rendered to HTML/Javascript on client side. But what if somebody have access to your PHP scripts? Can we still save our source code ?
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,293
    Likes Received:
    365
    Trophy Points:
    83
    You can encrypt and keep them in binary formats.

    There are lots of paid scripts which comes in encrypted format like Kayako support scripts
     
  3. Bhullarz

    Bhullarz New Member

    Joined:
    Nov 15, 2006
    Messages:
    253
    Likes Received:
    13
    Trophy Points:
    0
    Occupation:
    System Manager
    Home Page:
    PHP scripts in binary format will run as normal as simple scripts run or we have to use special methods to execute such scripts in binary format ?
     
  4. Hex00010

    Hex00010 New Member

    Joined:
    Jul 21, 2009
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    0
    Shabbir is correct you can encrypte php code for exampel when some ppl use shells they encrypt it base_64 why? most servers admins are getting smart and setting up scripts to where the server scans for strings inside the server and it will detect it

    so they encrypt it to bypass that method

    But even that be if the person that wants your php script and its encrypted and is smart enough he can easily decrypt it so either way securing php script by encrypting it will never be safe it will only block the ones that are not smart enough
     

Share This Page