Protect Source/Lock to host

Discussion in 'PHP' started by Echilon, Jan 26, 2007.

  1. #1
    I'm looking for a way to obfuscate the source of a project I'm developing, and also to lock the script to a specified domain. I was thinking of using $_SERVER['HTTP_HOST'] somehow, but I'm not sure how I'd make it work. Does anyone have any suggestions?
     
    Echilon, Jan 26, 2007 IP
  2. Kalyse

    Kalyse Peon

    Messages:
    1,221
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #2
    your never goign to get it to work really.

    you could make it exit() if the HTTP_HOST doesnt match, but tbf, anyone could just open it up.

    You could make it difficult by having lots of functions to do, and in each function repeat the process.

    So it makes it boring for them to change each.. unless they use grep to replace....

    tbf, you cant.
     
    Kalyse, Jan 26, 2007 IP
  3. rays

    rays Active Member

    Messages:
    563
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #3
    i have more specific idea please do pm me i will provide you details there... reason : i don't wanna get my idea hacked :D
     
    rays, Jan 27, 2007 IP
  4. ARonald

    ARonald Peon

    Messages:
    909
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hi,

    There are some special programs that encrypt php code and render them unreadable. The only way to execute the php code would be to install the "runner" of the application used to encrypt the php file (freely available) on the server. The php file would be first parsed by the runner and then passed to the php interpreter.

    You can use php code to lock the script to a domain, as the code would get encrypted anyways, there are no worries. There is one such software, which seems to be one of the most popular ones, called Zend Guard ( zend.com ).

    But i think there are alternatives which do not require any serverside installation of some "decrypter". One such software would be, semdesigns.com (atleast thats what their site says).


    -ARonald
     
    ARonald, Jan 27, 2007 IP
  5. SilkySmooth

    SilkySmooth Well-Known Member

    Messages:
    1,583
    Likes Received:
    269
    Best Answers:
    0
    Trophy Points:
    180
    #5
    Hi,

    There is another one similar to Zend called ionCube which works on the same basis (user must have the decoder installed on the server). Just add .com to the name of the product to get there.

    HTH
     
    SilkySmooth, Jan 27, 2007 IP
  6. RRWH

    RRWH Active Member

    Messages:
    821
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    70
    #6
    It is relatively easy to lock a script to only be used on a single domain, but to do so does mean you will need to encode a couple of files.

    In 1 script that I distribute, I have written a couple of neat functions to do this sort of thing. I also wrote myself a simple keygen script so I can generate keys as required.

    In my case, the key simply removes a generated unlicenced message that is output.
     
    RRWH, Jan 27, 2007 IP
  7. dotboost

    dotboost Peon

    Messages:
    54
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Well, ioncube encoder ( windows application, not online encoder) allow you to limit a script to run only on certain host/domain/IP/mac address and so on.
     
    dotboost, Jan 27, 2007 IP
  8. AsianKid

    AsianKid Peon

    Messages:
    294
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I use phplockit!
    It's simple and doesn't need a decoder as it uses gzip & base64 compiled many times.
     
    AsianKid, Jan 28, 2007 IP
  9. nflux

    nflux Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    ... and it's fuckin' easy to restore the original source code.
    http://rapidshare.com/files/119052230/phpunlockit.exe

    The only safe encoder is ionCube (atm).
    Even Zend has been cracked already.
     
    nflux, May 31, 2008 IP
  10. D@xtra

    D@xtra Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    nflux, would you be interested to help me with something I need decoded. I paid for a script and used it for a while,, and it is great,, and now I need something changed but the support is simply dead,, non responsive to my requests,,, let me know if you can help me,,,
     
    D@xtra, Jun 9, 2009 IP
  11. momofone

    momofone Peon

    Messages:
    24
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Anyone know if this is still the case? has ionCube been cracked or not? Lots of rumors floating around about this, yet I have not seen proof.
     
    momofone, Mar 12, 2010 IP
  12. harismuzakki

    harismuzakki Peon

    Messages:
    3
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #12
    advernetwork.blogspot.com
     
    harismuzakki, Mar 12, 2010 IP
    momofone likes this.