how to protect php files on local

Discussion in 'PHP' started by baris22, Dec 26, 2010.

  1. #1
    hello all,

    i developped an intranet for a shop. I am going to give this intranet with the computer. What can i do to stop them using this intranet on another computer?


    If they copy the files on another computer it should not work.
     
    baris22, Dec 26, 2010 IP
  2. phpwnes

    phpwnes Peon

    Messages:
    509
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    maybe use some external files for your php files and dont tell them about it so if they copy it they wouldn't notice about which files they'd need.
     
    phpwnes, Dec 26, 2010 IP
  3. baris22

    baris22 Active Member

    Messages:
    543
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #3
    if i do that will i hav any problem with speed? Maybe i can require some text file from windows folder and use some encoding for php files
     
    baris22, Dec 27, 2010 IP
  4. animebuzz.tv

    animebuzz.tv Peon

    Messages:
    317
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    code the program to be password protected so that if someone try to steal it, it still doesn't work. its better to encrypt the code as well.. there are tools to encrypt your php files too
     
    animebuzz.tv, Dec 27, 2010 IP
  5. dsdf

    dsdf Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Encrypt and also hard coding your computer name or IP address, so it only can be used on specific computer.
     
    dsdf, Dec 29, 2010 IP
  6. xrvel

    xrvel Notable Member

    Messages:
    918
    Likes Received:
    30
    Best Answers:
    2
    Trophy Points:
    225
    #6
    i'd say you must set the IP and lock it into that IP.

    
    <?php
    if ($_SERVER['REMOTE_ADDR'] != '1.2.3.4') {
    exit('You can not run this script');
    }
    ?>
    
    PHP:
    and encode it :)
     
    xrvel, Jan 1, 2011 IP
  7. ROOFIS

    ROOFIS Well-Known Member

    Messages:
    1,234
    Likes Received:
    30
    Best Answers:
    5
    Trophy Points:
    120
    #7
    ROOFIS, Jan 4, 2011 IP