1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Protect php source code

Discussion in 'PHP' started by sample4u, Nov 2, 2013.

  1. #1
    Hi
    Use my solution and your php code is more safe

    encode your files by Ioncube,SourceGuardian,phpSHIELD,Zend,TrueBug ,nu-coder or ...

    <?php
    namespace MyProtect;
    class myProtect {}
    
    
    // Your code here (encode your files with php 5.3 and 5.3+
    
    
    namespace MyProtect;
    class myProtect {}
    ?>
    PHP:
     
    sample4u, Nov 2, 2013 IP
  2. Zoti Media Group

    Zoti Media Group Notable Member

    Messages:
    1,598
    Likes Received:
    113
    Best Answers:
    2
    Trophy Points:
    265
    Digital Goods:
    2
    #2
    Nothing is safe those days anymore :)
     
    Zoti Media Group, Nov 2, 2013 IP
  3. sample4u

    sample4u Well-Known Member

    Messages:
    683
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    108
    #3
    more safe is better of no safe :D
     
    sample4u, Nov 2, 2013 IP
  4. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #4
    Um, ... what?
     
    nico_swd, Nov 2, 2013 IP
    ThePHPMaster likes this.
  5. NetStar

    NetStar Notable Member

    Messages:
    2,471
    Likes Received:
    541
    Best Answers:
    21
    Trophy Points:
    245
    #5
    You have billion dollar companies who worry less about code theft than your PHP newbie trying to protect their 9 line page counter.

    News flash.. we are developers. Most of the time we can recreate whatever you make without seeing your source. You are worried about something miniscule.
     
    NetStar, Nov 2, 2013 IP
    nico_swd and sarahk like this.
  6. pictureboarduk

    pictureboarduk Well-Known Member

    Messages:
    551
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    140
    #6
    Well PHP does run on the server, so unless you are selling your scripts then this isn't really needed.
     
    pictureboarduk, Nov 4, 2013 IP
  7. Pudge1

    Pudge1 Well-Known Member

    Messages:
    912
    Likes Received:
    6
    Best Answers:
    1
    Trophy Points:
    140
    Digital Goods:
    1
    #7
    I don't understand, PHP is ran server side not client side. People shouldn't be able to see your PHP source code in the first place unless you have a vulnerability in your script. And assuming they can get to your source code from a vulnerability they can most likely re-create the site themself
     
    Pudge1, Nov 5, 2013 IP
  8. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #8
    Since he's suggesting Ioncube, SourceGuardian, etc... I'm pretty sure he's aware that PHP runs on the server. So he's most definitely referring encryption for code distribution (a very, very nasty thing to do, by the way).

    What troubles me the most is his other solution, though. Placing the code between namespaces and suggesting to encode it with PHP 5.3 or above. Seriously, what the Effin' eff? This makes no sense whatsoever.

    Unless the OP provides more details, this thread should be closed and vanished from this planet.

    Also, this pretty much:

     
    nico_swd, Nov 6, 2013 IP
  9. sample4u

    sample4u Well-Known Member

    Messages:
    683
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    108
    #9
    So why you purchase lock? open your door home :D
    More big companies protect codes, whmcs and .................. because some developers steal codes and use for themselves.
    my Solution only stop stealers
     
    sample4u, Nov 6, 2013 IP
  10. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #10
    But I fail to see how.

    What's the purpose of the namespaces, and how do you encode your code with PHP?

    Most of us are aware of Ioncube and the others, so that aside. What's with your other solution?
     
    nico_swd, Nov 6, 2013 IP