How to limit usage of script per one domain

Discussion in 'PHP' started by nikolaaa, Jan 25, 2007.

  1. #1
    Do you have any idea how to protect script to can be used only per one domain?
     
    nikolaaa, Jan 25, 2007 IP
  2. picouli

    picouli Peon

    Messages:
    760
    Likes Received:
    89
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you are selling/distributing a PHP script and you want to prevent your clients from using it on other domains, unless you encrypt it you are in tough luck (remember that you are selling the *code*)

    Otherwise, I didn't understand your question... ;)
     
    picouli, Jan 25, 2007 IP
  3. nikolaaa

    nikolaaa Well-Known Member

    Messages:
    1,594
    Likes Received:
    73
    Best Answers:
    0
    Trophy Points:
    145
    #3
    Yes. I want to sell licence per one domain.
     
    nikolaaa, Jan 25, 2007 IP
  4. sarahk

    sarahk iTamer Staff

    Messages:
    28,828
    Likes Received:
    4,541
    Best Answers:
    123
    Trophy Points:
    665
    #4
    encryption or call home.

    Encryption
    * someone will try to hack it
    * buyers can't make changes so you'd better allow plugins

    Call Home
    * your package had better be big enough that you can hide the call or people will edit it out
    * your server had better be fast with fantastic uptime or you'll impact on your customers
     
    sarahk, Jan 25, 2007 IP
  5. picouli

    picouli Peon

    Messages:
    760
    Likes Received:
    89
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Can't you host the scripts yourself and "sell" the service only? This way you won't be distributing your code around.

    Encryption - good method but, is it worth it?
    Call home - if your package is big enough (and I mean, BIG) you can avoid this and just bury very very deeply a check on the $_SERVER["HTTP_HOST"] var...

    Just my .2 €
     
    picouli, Jan 25, 2007 IP
    sarahk likes this.
  6. bobby9101

    bobby9101 Peon

    Messages:
    3,292
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #6
    yeah, you will need to encode it... which unless it is $XXX software isn't worth it

    AHh the old call home method... you could have one key part on your server, and their script has to access it for the script to work (via unique key)
    but as sarah said, you need a fast server with %100 uptime
     
    bobby9101, Jan 25, 2007 IP
    sarahk likes this.
  7. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #7
    If it's the first of many I would highly recommend phpaudit and ionCube, the bundle is $235 but well worth it in the end ...
     
    krakjoe, Jan 25, 2007 IP
  8. emitind

    emitind Peon

    Messages:
    567
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I just installed a license system per domain name on my new script I'm selling which goes beyond the normal call to home. Used a few tricks to get around it.

    Edit: Please PM for details, realised people could break my script if I exposed it here lol.
     
    emitind, Jan 25, 2007 IP
  9. RRWH

    RRWH Active Member

    Messages:
    821
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    70
    #9
    Encoded script is called for - to do so is fairly easy to do - if it is a reasonably small script use the online ioncube encoder - cost is only a few $ to encode the script.
     
    RRWH, Jan 26, 2007 IP
  10. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #10
    Another method or variation of the call-home, you could have an encrypted database... which encrypts all the fields every time you hit the CMS (this would be enforced in multiple places). It can encrypt it using a new key every time which you could retrieve from your own server (Home).

    - Just my 2 centz
     
    ccoonen, Jan 26, 2007 IP
  11. Kalyse

    Kalyse Peon

    Messages:
    1,221
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #11
    That would be insane. Each page view would have hundreds or thousands of queries each second...

    multiply that byusers.

    Ughhh definatley not
     
    Kalyse, Jan 26, 2007 IP
  12. sarahk

    sarahk iTamer Staff

    Messages:
    28,828
    Likes Received:
    4,541
    Best Answers:
    123
    Trophy Points:
    665
    #12
    Kalyse - it's usually restricted to just the admin login script or something similar. So you can have your site up and running but you can't maintain it, or perhaps on the upgrade script, or some special functionality so that by the time you can't live without it you also don't want to change to anything else either and willingly cough up the dollars.
     
    sarahk, Jan 26, 2007 IP
  13. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #13
    HEHE, did you fully read my post? I said every time you hit the CMS. This would be probably at most a few times a day.

     
    ccoonen, Jan 26, 2007 IP
  14. AsianKid

    AsianKid Peon

    Messages:
    294
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #14
    I use phplockit!
    It has the ability to lock to domain and even server ip.

    Worth the price I paid :)
     
    AsianKid, Jan 28, 2007 IP
  15. goscript

    goscript Prominent Member

    Messages:
    2,753
    Likes Received:
    306
    Best Answers:
    0
    Trophy Points:
    315
    #15
    Use Zend Encoder. At least this is what i use. You can encrypt a license into the php scripts to that they can run only into the specified domain/serve rip.
     
    goscript, Jan 28, 2007 IP
  16. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #16
    I was offline for a week, and php is no fun offline, so I got out VC++ and a *nix distro and started messing with php_extension modules, they aren't so difficult to build and present a thousand ways to secure your script .... something you could look into maybe .... if u know or know someone that knows c (cpp can be used, but c experienced is required ) at least .... obviously it would mean you would have to compile these modules for every eventual system, but hey ionCube do it, and it works pretty well ....
     
    krakjoe, Feb 6, 2007 IP