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:
    http://www.tutors161.com
    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,375
    Likes Received:
    388
    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:
    http://www.tutors161.com
    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:
    31
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice