Securing a database application
I would like to write a database application for a customer. The interface is using PHP to access the database. Is it possible to secure the application so that it cannot be copied and used on another machine? Can you give me an example of how a program can check the registry to check for a key value?
The usual way to do this is to put your PHP or other CGI programs in a
directory that is protected from access from the Web server directly and
will only be accessed by the CGI itself. The specifics of how you do this
depend on which operating system and Web server you have.
Microsoft has a number of articles on how to do this. Take a look at:
for reading and
Several of these have source code. Admittedly, it's in Visual FoxPro, but I
found them intelligible, and I've never used FoxPro, myself.
This was first published in October 2001