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:
    1. <?php
    2. namespace MyProtect;
    3. class myProtect {}
    4.  
    5.  
    6. // Your code here (encode your files with php 5.3 and 5.3+
    7.  
    8.  
    9. namespace MyProtect;
    10. class myProtect {}
    11. ?>
    sample4u, Nov 2, 2013 IP
  2. BuySiteAds.com

    BuySiteAds.com Well-Known Member

    Messages:
    945
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    125
    Digital Goods:
    2
    #2
    Nothing is safe those days anymore :)
    BuySiteAds.com, Nov 2, 2013 IP
  3. sample4u

    sample4u Active Member

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

    nico_swd Prominent Member

    Messages:
    4,119
    Likes Received:
    331
    Best Answers:
    17
    Trophy Points:
    325
    #4
    Um, ... what?
    nico_swd, Nov 2, 2013 IP
    ThePHPMaster likes this.
  5. NetStar

    NetStar Well-Known Member

    Messages:
    1,140
    Likes Received:
    109
    Best Answers:
    19
    Trophy Points:
    115
    #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 Active Member

    Messages:
    544
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    80
    #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 Active Member

    Messages:
    877
    Likes Received:
    5
    Best Answers:
    1
    Trophy Points:
    70
    #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,119
    Likes Received:
    331
    Best Answers:
    17
    Trophy Points:
    325
    #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 Active Member

    Messages:
    683
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    58
    #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,119
    Likes Received:
    331
    Best Answers:
    17
    Trophy Points:
    325
    #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