Restrict PHP script installation on 1 domain name only.

Discussion in 'PHP' started by dynashox, Jul 22, 2008.

  1. #1
    Can anybody guide me, how to restrict PHP script installation on 1 domain name only. Is there any tools/scripts out there that allow me to do this?

    I have found 1 software before but forgot the name already as time goes by.
     
    dynashox, Jul 22, 2008 IP
  2. BDazzler

    BDazzler Peon

    Messages:
    215
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    There are several options. One is to use a PHP obfusactor and check the host variable within the obfuscated code.
     
    BDazzler, Jul 22, 2008 IP
  3. dynashox

    dynashox Premium Member Staff

    Messages:
    8,662
    Likes Received:
    563
    Best Answers:
    3
    Trophy Points:
    335
    #3
    Thanks for the suggestion. I'll take a look at that tools. Anymore suggestion?
     
    dynashox, Jul 24, 2008 IP
  4. ahowell

    ahowell Peon

    Messages:
    38
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Your will need:

    1.) Licensing system. It is up to you whether it is licensed off of a license key, url, etc.
    2.) Encoder (IonCube, ZendGaurd...).

    Being that PHP is open source, anything that you code and hand off to somebody else can be edited. To prevent this, you will need to encode some or all of your code.

    Aside from that, you can accomplish this by having your script curl out to your license server and deliver a key (url, license, etc), and your license server would send back a response code.
    Based on the response, your client script will proceed or shut down.

    Concept is fairly straight forward, but you'll need knowledge on the above mentioned items.
     
    ahowell, Jul 24, 2008 IP
  5. jack_ss

    jack_ss Guest

    Messages:
    94
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I have used the following in the past:

    1. Good faith (generally a bad idea).
    2. A good contract (generally a good idea).
    3. Licensing key.
    4. Zend guard encoding.

    I like the suggestion of a license server. You could probably even use a real simple file_get_contents("http://yourserver?hash_key=XXXXX") and respond accordingly.
     
    jack_ss, Jul 24, 2008 IP
  6. proxywhereabouts

    proxywhereabouts Notable Member

    Messages:
    4,027
    Likes Received:
    110
    Best Answers:
    0
    Trophy Points:
    200
  7. nQQb

    nQQb Active Member

    Messages:
    332
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #7
    nQQb, Jul 25, 2008 IP
  8. rob_v

    rob_v Peon

    Messages:
    72
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #8
    nqqb
    I'm gonna check that out. Btw check out taketwosolutions.com for your ecommerce processing. We specialize in ecommerce solutions for software developers.

    -rob
     
    rob_v, Jul 26, 2008 IP