protect source code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • toufik toufik

    #1

    protect source code

    Hi,
    Is it possible to hide a source code PHP in order to protect it,
    I mean, I'm developpind a web solution for customers and I don't like that
    the customer or the host see my code.

    Thanks.


  • filesiteguy

    #2
    Re: protect source code

    On Tue, 5 Oct 2004 17:26:07 -0400, someone posing as toufik toufik chisled
    in the wall:
    [color=blue]
    > Hi,
    > Is it possible to hide a source code PHP in order to protect it,
    > I mean, I'm developpind a web solution for customers and I don't like that
    > the customer or the host see my code.
    >
    > Thanks.[/color]

    Lot's of ways.

    1. Compile it - oh, wait this is php...

    2. obsfucate it - there are many tricks to this.
    --
    kai - filesiteguy at yahoo dot com
    www.perfectreign.com || www.filesite.org || www.gamephreakz.com
    "I got a Rock!" - C. Brown

    Now playing: "Cactus World News - Frontiers"

    Comment

    • Pedro Graca

      #3
      Re: protect source code

      toufik toufik wrote:[color=blue]
      > Is it possible to hide a source code PHP in order to protect it,
      > I mean, I'm developpind a web solution for customers and I don't like that
      > the customer or the host see my code.[/color]

      One solution is

      Zend Encoder:
      Perforce, a software company, offers a wide range of enterprise DevOps solutions across the software development lifecycle.


      --
      USENET would be a better place if everybody read: | to email me: use |
      http://www.catb.org/~esr/faqs/smart-questions.html | my name in "To:" |
      http://www.netmeister.org/news/learn2quote2.html | header, textonly |
      http://www.expita.com/nomime.html | no attachments. |

      Comment

      • Michael Vilain

        #4
        Re: protect source code

        In article <KjE8d.10996$HO 1.579737@news20 .bellglobal.com >,
        "toufik toufik" <toufiki@sympat ico.ca> wrote:
        [color=blue]
        > Is it possible to hide a source code PHP in order to protect it,
        > I mean, I'm developpind a web solution for customers and I don't like that
        > the customer or the host see my code.[/color]

        Depends on what you mean by "hide it". Hide it from _what_?

        You can't hide it from the web server or you won't be able to display
        pages. If the customer has shell access to the server, you _may_ be
        able to hide that from them if the file permissions are set correctly.

        But if you're trying to "compile" the code in such a way that they can
        look at the file but don't know what it's doing, that can only be done
        minimally as has been previously discussed.

        If you want to make the source code unavailable, switch to a compiled
        language like C and write it as a CGI program. Otherwise, there's only
        so much you can do to "hide" the source code in php, perl, or python.

        You could switch to Java, but portability might be a problem, as well as
        scaling to more traffic.

        --
        DeeDee, don't press that button! DeeDee! NO! Dee...



        Comment

        • Matthias Esken

          #5
          Re: protect source code

          filesiteguy wrote:
          [color=blue]
          > 1. Compile it - oh, wait this is php...[/color]

          Use the Zend Encoder:
          Perforce, a software company, offers a wide range of enterprise DevOps solutions across the software development lifecycle.


          Regards,
          Matthias

          Comment

          • Manuel Lemos

            #6
            Re: protect source code

            Hello,

            On 10/05/2004 06:26 PM, toufik toufik wrote:[color=blue]
            > Is it possible to hide a source code PHP in order to protect it,
            > I mean, I'm developpind a web solution for customers and I don't like that
            > the customer or the host see my code.[/color]

            You may want to try RoadSend, the first and so far the only real PHP
            compiler. It generates really executable code from PHP scripts, as
            opposed to just encoded byte codes which is what PHP encoders do. Not
            only it will protect your code irrevesibly but it seems extraordinarily
            fast.



            --

            Regards,
            Manuel Lemos

            PHP Classes - Free ready to use OOP components written in PHP
            http://www.phpclasses.org/

            PHP Reviews - Reviews of PHP books and other products
            http://www.phpclasses.org/reviews/

            Metastorage - Data object relational mapping layer generator

            Comment

            • toufik toufik

              #7
              Re: protect source code

              Thanks friends.

              "toufik toufik" <toufiki@sympat ico.ca> wrote in message
              news:KjE8d.1099 6$HO1.579737@ne ws20.bellglobal .com...[color=blue]
              > Hi,
              > Is it possible to hide a source code PHP in order to protect it,
              > I mean, I'm developpind a web solution for customers and I don't like that
              > the customer or the host see my code.
              >
              > Thanks.
              >
              >[/color]


              Comment

              • Justin Koivisto

                #8
                Re: protect source code

                toufik toufik wrote:[color=blue]
                > Is it possible to hide a source code PHP in order to protect it,
                > I mean, I'm developpind a web solution for customers and I don't like that
                > the customer or the host see my code.[/color]

                Here's a FREE solution that I have installed:

                http://sourceforge.net/projects/turck-mmcache/

                I have yet to actually test it yet, but it looks good to me so far.
                (I'll know more when I start testing it.)

                --
                Justin Koivisto - spam@koivi.com

                Comment

                • Brad Shinoda

                  #9
                  Re: protect source code

                  Don't use an obfuscator - there are several programs available on the
                  web (BeautifyPHP, and a class or two at phpclasses.org) that can
                  recover obfuscation.

                  Comment

                  • Ira Baxter

                    #10
                    Re: protect source code


                    "toufik toufik" <toufiki@sympat ico.ca> wrote in message
                    news:KjE8d.1099 6$HO1.579737@ne ws20.bellglobal .com...[color=blue]
                    > Hi,
                    > Is it possible to hide a source code PHP in order to protect it,
                    > I mean, I'm developpind a web solution for customers and I don't like that
                    > the customer or the host see my code.[/color]

                    You can obfuscate the source code.
                    This makes it typically unreadable by people.

                    Some claim that if you prettyprint an obfuscated
                    code, you can read it. Not if the comments
                    are gone, and the variable names are scrambled.
                    Then it becomes a hard problem in reverse-engineering.

                    See http://www.semanticdesigns.com/Produ...bfuscator.html.


                    --
                    Ira D. Baxter, Ph.D., CTO 512-250-1018
                    Semantic Designs, Inc. www.semdesigns.com


                    Comment

                    Working...