Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Aug 2007
    Posts
    46
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Encrypting and Protecting your PHP Code.

    I recently spent several weeks building a very detailed and extensive site for a client. After I completed it on their server, the client refused to pay me what I requested. I do not want to be a rough person and delete all the files on the server, I don't feel two wrongs make a right. However, I want to protect my scripting from other people getting access to it.

    I am going to let the client have the website, however, I want to encrypt or encode or do something to the code so that it cannot be read without having a key or something.
    Is there any software that can do this for me?

    I use dreamweaver cs, is there an addon for it that I can maybe use?

    Thank you!

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    There are code obfuscation utilities out there (google php obfuscation) but if I were you I would definitely remove the website until you are paid. Two wrongs don't make a right, but one wrong should never be rewarded. It is not wrong for you to receive compensation for your work-- in fact, it is wrong for you to allow them to rip you off, thus you are allowing the 2nd wrong to occur.

    Consider yourself the website repo man

  • #3
    Senior Coder
    Join Date
    Jan 2007
    Posts
    1,648
    Thanks
    1
    Thanked 58 Times in 54 Posts
    I wanted to voice my agreement with what Fumigator said.

    A non-paying client is a big issue, but encrypting/licensing your code will not work/help.

    The question is, if you delete it off of their server will they have a backup copy restored? And do you still have access to the server?

    I'm curious what kind of key element could be left out, or disabled in the website so that you can wait with enabling until full payment has been received.

    I wonder if for this specific reason, the website should never be set up on the final server until the final payment was given. Develop it on a development server, then demo it to the client at that location. That way they can't take the code and not pay you.

    Was there some kind of up front payment? Even if you do manage to take away their code, it sounds like you invested a lot of time and it would be a waste to see it disappear.

  • #4
    New Coder
    Join Date
    Oct 2007
    Posts
    84
    Thanks
    0
    Thanked 8 Times in 8 Posts
    Remove your content from their site. You can still use it in your portfolio or rebrand it and sell it to their competitor. I've done that a few times


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •